package com.example.springamqp;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Producer {
    @Autowired
    private RabbitTemplate rabbitTemplate;

    public void send() {
        String queueName = "simple.queue";
        String message = "hello, spring amqp!";
        rabbitTemplate.receive()
    }
}